تعرف ايه اللى بيحصل من وراك فى الـ JavaScript لما بتكتب كود زي ده؟
var str = "hello"; str = str.substring(0, 2);
الـ str هنا عبارة عن primitive type مش المفروض يبقى فيه properties او functions. الـ JavaScript بتاخد الـ str وتعمل منه String Object وتنفذ ال substring وتاخد النتيجة على جنب وتمسح ال Object اللى اتعمل وتعمل من النتيجة value جديدة لـ str.
وتعرف ان الـ int فى الـ C# عبارة عن primitive type برضه لكنه فى الأصل struct. علشان كدة ممكن تلاقى فيه function زي ToString مثلاً عادي.
وتعرف ان الـ variables فى لغة زي Rust هى immutable بالفطرة ولو عايزن تبقى mutable لازم تحدد ده بنفسك.
تعرف ان الـ string فى C# يعتبر immutable لكن الـ StringBuilder يعتبر mutable وان ال string فى الـ javascript برضه immutable لكنه فى لغة زي الـ PHP بيبقى mutable.
على الرغم من انك مش مطالب تعرف كل لغة بتتعامل مع الداتا ازاى لكنك مطالب بحاجتين 1- تعرف لغتك كويس بتعمل ايه من جوه 2- ماتفترضش ان اللى بيحصل فى لغتك بيحصل فى باقى اللغات (حتى لو فى تشابه كبير)
تعرف ايه اللى بيحصل من وراك فى الـ JavaScript لما بتكتب كود زي ده؟
var str = "hello"; str = str.substring(0, 2);
الـ str هنا عبارة عن primitive type مش المفروض يبقى فيه properties او functions. الـ JavaScript بتاخد الـ str وتعمل منه String Object وتنفذ ال substring وتاخد النتيجة على جنب وتمسح ال Object اللى اتعمل وتعمل من النتيجة value جديدة لـ str.
وتعرف ان الـ int فى الـ C# عبارة عن primitive type برضه لكنه فى الأصل struct. علشان كدة ممكن تلاقى فيه function زي ToString مثلاً عادي.
وتعرف ان الـ variables فى لغة زي Rust هى immutable بالفطرة ولو عايزن تبقى mutable لازم تحدد ده بنفسك.
تعرف ان الـ string فى C# يعتبر immutable لكن الـ StringBuilder يعتبر mutable وان ال string فى الـ javascript برضه immutable لكنه فى لغة زي الـ PHP بيبقى mutable.
على الرغم من انك مش مطالب تعرف كل لغة بتتعامل مع الداتا ازاى لكنك مطالب بحاجتين 1- تعرف لغتك كويس بتعمل ايه من جوه 2- ماتفترضش ان اللى بيحصل فى لغتك بيحصل فى باقى اللغات (حتى لو فى تشابه كبير)
منقول
BY Web Development Code
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?
Telegram Be The Next Best SPAC
I have no inside knowledge of a potential stock listing of the popular anti-Whatsapp messaging app, Telegram. But I know this much, judging by most people I talk to, especially crypto investors, if Telegram ever went public, people would gobble it up. I know I would. I’m waiting for it. So is Sergei Sergienko, who claims he owns $800,000 of Telegram’s pre-initial coin offering (ICO) tokens. “If Telegram does a SPAC IPO, there would be demand for this issue. It would probably outstrip the interest we saw during the ICO. Why? Because as of right now Telegram looks like a liberal application that can accept anyone - right after WhatsApp and others have turn on the censorship,” he says.